Change icon type for KML position writer when we don't -really- have a fix.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 18 Oct 2006 22:37:51 +0000 (22:37 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 18 Oct 2006 22:37:51 +0000 (22:37 +0000)
gpsbabel/kml.c

index c68738c4299e39c9cb92117333be3b1798aad5c1..7bbfcec7e1f0fa418d1cc7cfd5fb0ec7287bb280 100644 (file)
@@ -811,7 +811,12 @@ kml_wr_position(waypoint *wpt)
 
        /* We want our waypoint to have a name, but not our trackpoint */       
        if (!wpt->shortname) {
-               wpt->shortname = xstrdup("Position");
+               if (wpt->fix == fix_none) {
+                       wpt->shortname = xstrdup("ESTIMATED Position");
+                       wpt->icon_descr = "http://maps.google.com/mapfiles/kml/pal3/icon59.png";
+               } else {
+                       wpt->shortname = xstrdup("Position");
+               }
        }
 
        if (!trk_head) {